<template>
  <div  class="header">
    <span class="iconfont">&#xe622;</span>
    <div class="box">
        <span>图标</span>
        <input type="text" class="put" placeholder="请输入城市地名景点">
    </div>
    <router-link to="/city">
        <span>{{this.$store.state.city}}</span>
    </router-link>
    
  </div>
</template>

<script>
    export default{
        name:"header",
        props:{
            city:String
        }
    }
</script>

<style lang="stylus" scoped>
    .header{
        width 100%
        height 50px
        display flex
        align-items center
        justify-content space-between
        background-color #00BCD4
        .box{
            width 80%
            height 30px
            background-color #fff
            line-height 30px
            border-radius 10px
            span{
                background-color #ffffff
                height 30px
                border-radius 10px
            }
            input{
                width 80%
                border-radius 10px
                text-indent .01rem
            }
        }
        span{
            width 10%
        }
    }
</style>